/**
 * [extend description]
 * @type {String}
 */
Ext.define('DragonApp.view.white.IPBar', {

    extend: 'Ext.toolbar.Toolbar',
    xtype: 'whitebar_ip',

    items: [{
        xtype: 'button',
        text: 'IP段白名单',
        itemId: 'newip',
        tooltip: '添加',
        handler: 'onAddIp',
        iconCls: 'x-fa fa-plus-square-o',
        width: 120
    }, {
        xtype: 'button',
        text: '批量删除',
        itemId: 'batdeleteIp',
        tooltip: '批量删除',
        handler: 'onBatDelete',
        glyph: 'xf014@FontAwesome',
        width: 100
    }, '->', {
        xtype: 'textfield',
        name: 'searchfield',
        itemId: 'searchfield_ip',
        emptyText: '请输入IP筛选关键字',
        listeners: {
            specialKey: 'onTextFieldSpecialKeySearch'
        }
    }, {
        text: '搜索',
        xtype: 'button',
        tooltip: '搜索',
        itemId: 'searchbtn_ip',
        iconCls: 'fa fa-search fa-lg buttonIcon',
        listeners: {
            click: 'onIPSearch'
        }
    }]
});